package it.pir.es08ChatRMIPullDecorator;

import java.io.Serializable;
public class Message implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String text;
	private String user;
	private int id;
	
	public Message(String text, String user){
		this.text=text;
		this.user = user;
		
		//L'id del msg viene inizializzato a -1 e servir� per identificarli
		id = -1;
	}
	
	public String getText(){
		return text;
	}
	
	public void setText(String text){
		this.text=text;
	}
	
	public String getUser(){
		return user;
	}
	
	public int getId(){
		return id;
	}
	
	public void setId(int id){
		this.id = id;
	}
	
}
